<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/WEB-INF/struts-tags.tld"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>欢迎访问产品运营互动中心！</title>
<%@ include file="/commons/include/head-meta-report.inc.jsp"%>	
</head>
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0">
<table width="980" border="0" cellspacing="0" cellpadding="0" align="center">
		<tr>
			<td>
			<table width="100%" border="0" cellpadding="0" cellspacing="0"
				background="<s:url value="/images/new/gxzl_index_2.gif"/>">
				<tr>
					<td width="20" height="32">&nbsp;</td>
					<td width="20"><img src="<s:url value="/images/new/dq_dot.gif"/>" width="15" height="12" /></td>
					<td>当前位置：需求单报表</td>
					<td width="60"></td>
					<td width="200"></td>
					<td width="100"></td>
				</tr>
			</table>
			</td>
		</tr>
  <tr> 
    <td  background="<s:url value="/images/home_4a.gif"/>"> 
      <table width="100%" height="400" border="0" cellspacing="0" cellpadding="0" align="center" bgcolor="#FFFFFF">
        <tr>

          <td valign="top">
					<table width="98%" align="center" border="0" cellspacing="0" cellpadding="0" >
						<br/>
						<tr>
							<td height="5">
								<table width="100%" border="0" cellspacing="0" cellpadding="0">
									<tr>
										<td width="5" height="5"><img src="<s:url value="/images/cphdzx_tab1.gif"/>" width="5" height="5" /></td>
										<td class="tdborderup"><img src="<s:url value="/images/spacer.gif"/>" width="1" height="1" /></td>
										<td width="5"><img src="<s:url value="/images/cphdzx_tab2.gif"/>" width="5" height="5" /></td>
									</tr>
								</table>
							</td>
						</tr>
						<tr>
							<td  class="tdborderleftright">
							<form action="flowReqReport_findBsReqReport.action" method="post" name="reportForm">	
			                <table width="700" border="0" cellspacing="0" cellpadding="0" align="left" class=tablecolor2>
			                  <tr> 
			                    <td width="14%" height="50"> 
			                      <div align="center">需求名称</div></td>
			                    <td width="35%"><input name="flowReqReportForm.reqTitle" type="text" value="${flowReqReportForm.reqTitle}" size="28"/></td>
			                    <td width="14%" height="50"> 
			                      <div align="center">产品经理</div></td>
			                    <td width="35%"><input name="flowReqReportForm.prodPerson" type="text" value="${flowReqReportForm.prodPerson}" size="28"/></td>
			                    
			                  </tr>
			                   <tr> 
			                    <td width="14%" height="50"> 
			                      <div align="center">发起时间</div></td>
			                    <td width="35%"><input name="flowReqReportForm.startTime" type="text" value="${flowReqReportForm.startTime}" onFocus="WdatePicker({isShowClear:true,readOnly:true})" size="28"/></td>
			                    <td width="14%" height="50"> 
			                      <div align="center">至</div></td>
			                  	<td width="35%"><input name="flowReqReportForm.endTime" type="text" value="${flowReqReportForm.endTime}" onFocus="WdatePicker({isShowClear:true,readOnly:true})" size="28"/></td>
			                  </tr>
			                  <tr> 
			                    <td width="14%" height="50"> 
			                      <div align="center">业务标签</div></td>
			                    <td width="35%"><input name="flowReqReportForm.businessTag" type="text" value="${flowReqReportForm.businessTag}" size="28"/></td>
			                   
			                    <td width="14%" height="50"> 
			                      <div align="center">发起部门</div></td>
			                    <td width="35%">
			                      	<select name="flowReqReportForm.shortDept">
			                      		<option value="">-=请选择部门=-</option>
			                      		<c:forEach var="shortName" items="${shortDeptList}">
			                      			<option value="${shortName}" <c:if test="${shortName eq flowReqReportForm.shortDept}"> selected="selected"</c:if>>${shortName}</option>
			                      		</c:forEach>
			                      	</select>
			                    </td>
			                  
			                  <tr height=30>
			                 	 <td width="14%" height="50"> 
			                      <div align="center">所属流程</div></td>
			                    <td width="35%">
			                      	<s:select name="flowReqReportForm.processId" list="processList" listKey="id" listValue="name" theme="css_xhtml" />
			                    </td>
			                    <td width="14%" height="50"> 
			                      	<div align="center">查询类型</div></td>
			                    <td width="35%">
			                    	<select name="flowReqReportForm.type">
			                      		<option value="1" <c:if test="${'1' eq flowReqReportForm.type}"> selected="selected"</c:if>>图形报表</option>
			                      		<option value="2" <c:if test="${'2' eq flowReqReportForm.type}"> selected="selected"</c:if>>进展报表</option>
			                      	</select>
			                    </td>
			                   </tr>
			                   <tr>
		                  		<td></td>
								<td align=left colspan="3">
			             			<input type="button" name="searchBtn" value="查 询" onclick="subNoValidateForm(document.forms[0],'flowReqReport_findBsReqReport.action');">
			             			<input type="button" name="excelBtn" value="导出Excel" onClick="subNoValidateForm(document.forms[0],'flowReqReport_exportReportExcel.action');">
									
								</td>
							  </tr>
							</table>
							</form>
							</td>
						</tr>
						<tr><td>
							<table width="2000" border="0" cellspacing="0" cellpadding="7"
								align="center" class=tablecolor2>
								<tr>
									<td bgcolor="9AC2EB">
									<div align="center"><font color="#FFFFFF">需求名称</font></div>
									</td>
									<td bgcolor="9AC2EB">
									<div align="center"><font color="#FFFFFF">重要性</font>
									</div>
									</td>
									<td bgcolor="9AC2EB">
									<div align="center"><font color="#FFFFFF">需求类别</font>
									</div>
									</td>
									<td bgcolor="9AC2EB">
									<div align="center"><font color="#FFFFFF">需求部门</font></div>
									</td>
									<td bgcolor="9AC2EB">
									<div align="center"><font color="#FFFFFF">需求人</font></div>
									</td>
									<td bgcolor="9AC2EB">
									<div align="center"><font color="#FFFFFF">产品部门</font></div>
									</td>
									<td bgcolor="9AC2EB">
									<div align="center"><font color="#FFFFFF">产品经理</font></div>
									</td>
									<td bgcolor="9AC2EB">
									<div align="center"><font color="#FFFFFF">提出时间</font></div>
									</td>
									<td bgcolor="9AC2EB">
									<div align="center"><font color="#FFFFFF">关联产品</font></div>
									</td>
									<s:iterator value="#request.processConfigDetails">
									<td bgcolor="9AC2EB">
										<div align="center"><font color="#FFFFFF"><s:property value="name" /></font></div>
									</td>
									</s:iterator>									
								</tr>
							<s:iterator id="report" value="#request.reportList">
								<tr>                      
									<td>
										<div align="center"><s:property value="name" /></div>
									</td>
									<td>
										<div align="center"><s:property value="importance" /></div>
									</td>
									<td>
										<div align="center"><s:property value="type" /></div>
									</td>
									<td>
										<div align="center"><s:property value="startDeptObj.name" /></div>
									</td>
									<td>
										<div align="center"><s:property value="startPerson" /></div>
									</td>
									<td>
										<div align="center"><s:property value="prodDept.name" /></div>
									</td>
									<td>
										<div align="center"><s:property value="prodPerson.name" /></div>
									</td>
									<td>
										<div align="center"><s:date name="begin" format="yyyy-MM-dd"/></div>
									</td>
									<td>
										<div align="center"></div>
									</td>
									<s:if test="#request.processConfigDetails!=null">
									<td colspan="${num}">
										<div align="left" width="100%">
											<img src='<s:url value="/images/new/jiantou.gif"/>' width="${percent }%" height="20"/><br/>
											<s:property value="currUser" />:<br/>
											<s:iterator value="reqProgresses" status="rp">
												<s:property value="#rp.index+1"/>.<s:property value="reqProg"/>
												&nbsp;完成<s:property value="percent"/>%
												【<s:date name="createTime" format="yyyy-MM-dd"/>】。<br/>
											</s:iterator>
										</div>
									</td>
									</s:if>									
								</tr>
							</s:iterator>
							</table>
							<div style="text-align: center">${pageNaviStr }</div>
							</td>
						</tr>
						<tr>
							<td height="5">
								<table width="100%" border="0" cellspacing="0" cellpadding="0">
									<tr>
										<td width="5" height="5"><img src="<s:url value="/images/cphdzx_tab3.gif"/>" width="5" height="5" /></td>
										<td class="tdborderbottom"><img src="<s:url value="/images/spacer.gif"/>" width="1" height="1" /></td>
										<td width="5"><img src="<s:url value="/images/cphdzx_tab4.gif"/>" width="5" height="5" /></td>
									</tr>
								</table>
							</td>
						</tr>
					</table>
				</td>
			</tr>
		</table>	
	</td>
	</tr>
</table>					 
</body>
</html>
